import 'package:flutter/material.dart';
import './route/PPRoutes.dart';
import './widget/PPUnknownPage.dart';

void main() => runApp(MaterialApp(
    title: '风始',
    initialRoute: '/',
    routes: PPRoutes.routes,
    theme: new ThemeData(
        brightness: Brightness.light,
        primaryColor: Colors.lightBlue[800],
        accentColor: Colors.cyan[600]
    ),
    onUnknownRoute: (settings){ // 路由错误处理回调
        return new MaterialPageRoute(builder: (context) => new PPUnknownPage(routeName: settings.name));
    },
));



